package com.dhsc.local.dao.impl.xtqxgl;

import com.dhsc.domain.ywzx.xtqxgl.BqcsglVo;
import com.dhsc.domain.ywzx.xtqxgl.RysxVo;
import com.dhsc.local.dao.xtqxgl.IBqcsglDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName: BqcsglDaoImpl
 * @Description: 标签参数管理
 * @date: 2023/11/8 9:27
 * @author: gx
 */
@Repository("bqcsgldao")
public class BqcsglDaoImpl implements IBqcsglDao {

    @Autowired
    private SqlSessionTemplate localSqlSessionTemplate;

    @Override
    public List<BqcsglVo> queryBqcsgl(BqcsglVo bqcsglVo) {
        return localSqlSessionTemplate.selectList("BqcsglMapper.queryBqcsgl",bqcsglVo);
    }

    @Override
    public int queryBqlxSequences() {
        return localSqlSessionTemplate.selectOne("BqcsglMapper.queryBqlxSequences");
    }

    @Override
    public int insertBqlx(BqcsglVo bqcsglVo) {
        return localSqlSessionTemplate.insert("BqcsglMapper.insertBqlx",bqcsglVo);
    }

    @Override
    public int insertJgdm(BqcsglVo bqcsglVo) {
        return localSqlSessionTemplate.insert("BqcsglMapper.insertJgdm",bqcsglVo);
    }

    @Override
    public int updateBqlx(BqcsglVo bqcsglVo) {
        return localSqlSessionTemplate.update("BqcsglMapper.updateBqlx",bqcsglVo);
    }

    @Override
    public int deleteJgdm(BqcsglVo bqcsglVo) {
        return localSqlSessionTemplate.delete("BqcsglMapper.deleteJgdm",bqcsglVo);
    }

    @Override
    public List<RysxVo> queryRysx(RysxVo rysxVo) {
        return localSqlSessionTemplate.selectList("BqcsglMapper.queryRysx",rysxVo);
    }
}
